using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace GURUCORE.Framework.Core.Data
{
    //TODO: This will not serializable !!! (because of Hashtable)

    /// <summary>
    /// G: this is metaversion of xxxDTO, working on string, on text base, accessing field by its name
    /// </summary>
    [System.Diagnostics.DebuggerStepThrough()]
    public sealed class GMetaDTO : DTOBase
    {
        private Hashtable m_htField;
        private string m_sTableName;
        private string m_sKeyField;

        public string KeyField
        {
            get { return m_sKeyField; }
            set { m_sKeyField = value; }
        }

        public string TableName
        {
            get { return m_sTableName; }
            set { m_sTableName = value; }
        }

        public GMetaDTO()
        {
            m_htField = new Hashtable();
        }

        public Hashtable Field
        {
            get
            {
                return m_htField;
            }
        }

        public object this[string p_sIndex]
        {
            get
            {
                return m_htField[p_sIndex];
            }
            set
            {
                m_htField[p_sIndex] = value;
            }
        }
    
    
    }    
}
